﻿<metro:MetroWindow x:Name="metroWindow" x:Class="DashboardEnabler.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:DashboardEnabler"
        xmlns:metro="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
        mc:Ignorable="d" Title="The Sims 3 Toolbox"
        MinHeight="600" Width="800" FontFamily="Segoe UI">
    <metro:MetroWindow.Resources>
        <Storyboard x:Key="busy" RepeatBehavior="Forever">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="busyMask">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
            </ObjectAnimationUsingKeyFrames>
            <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="busyMask">
                <EasingDoubleKeyFrame KeyTime="0" Value="1">
                    <EasingDoubleKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseOut"/>
                    </EasingDoubleKeyFrame.EasingFunction>
                </EasingDoubleKeyFrame>
            </DoubleAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="busyMask">
                <EasingColorKeyFrame KeyTime="0" Value="Red">
                    <EasingColorKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseOut"/>
                    </EasingColorKeyFrame.EasingFunction>
                </EasingColorKeyFrame>
                <EasingColorKeyFrame KeyTime="0:0:2" Value="#FFFF8B00"/>
                <EasingColorKeyFrame KeyTime="0:0:4" Value="Yellow"/>
                <EasingColorKeyFrame KeyTime="0:0:6" Value="#FF80FF00"/>
                <EasingColorKeyFrame KeyTime="0:0:8" Value="#FF00FF8B"/>
                <EasingColorKeyFrame KeyTime="0:0:10" Value="#FF00DCFF"/>
                <EasingColorKeyFrame KeyTime="0:0:12" Value="#FF0051FF"/>
                <EasingColorKeyFrame KeyTime="0:0:14" Value="#FF9700FF"/>
                <EasingColorKeyFrame KeyTime="0:0:16" Value="#FFF300FF"/>
                <EasingColorKeyFrame KeyTime="0:0:18" Value="#FFFF0080"/>
                <EasingColorKeyFrame KeyTime="0:0:20" Value="Red"/>
            </ColorAnimationUsingKeyFrames>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Window.WindowStyle)" Storyboard.TargetName="metroWindow">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static WindowStyle.None}"/>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
        <Storyboard x:Key="idle">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Visibility)" Storyboard.TargetName="busyMask">
                <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Static Visibility.Visible}"/>
                <DiscreteObjectKeyFrame KeyTime="0:0:0.5" Value="{x:Static Visibility.Collapsed}"/>
            </ObjectAnimationUsingKeyFrames>
            <ColorAnimationUsingKeyFrames Storyboard.TargetProperty="(Panel.Background).(SolidColorBrush.Color)" Storyboard.TargetName="busyMask">
                <EasingColorKeyFrame KeyTime="0" Value="Black"/>
                <EasingColorKeyFrame KeyTime="0:0:0.5" Value="#00000000">
                    <EasingColorKeyFrame.EasingFunction>
                        <CircleEase EasingMode="EaseOut"/>
                    </EasingColorKeyFrame.EasingFunction>
                </EasingColorKeyFrame>
            </ColorAnimationUsingKeyFrames>
        </Storyboard>
    </metro:MetroWindow.Resources>
    <Border BorderBrush="{DynamicResource AccentBrush}" BorderThickness="1">
        <Grid>
            <metro:MetroTabControl>
                <metro:MetroTabItem metro:ControlsHelper.HeaderFontSize="20" Header="DASHBOARD" Margin="10,0,-17,0" >
                    <Grid Margin="0,0,0,0">
                        <metro:MetroTabControl >
                            <metro:MetroTabItem metro:ControlsHelper.HeaderFontSize="18" Header="enabler" Margin="10,0,-13,0">
                                <Grid>
                                    <ListBox SelectionMode="Multiple" x:Name="disabledCCs" HorizontalAlignment="Stretch" Margin="10,42,10,45"/>
                                    <Button Click="reenableCCButton_Click"  x:Name="reenableCCButton" metro:ButtonHelper.CornerRadius="0" Margin="9.003,0,0,10" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="60" Height="30" Content="Reenable"/>
                                    <TextBlock x:Name="textBlock" Height="34.04" Margin="13.333,2.96,0,0" TextWrapping="Wrap" VerticalAlignment="Top" HorizontalAlignment="Left" Width="331.667">
                                        <TextBlock.Foreground>
                                            <SolidColorBrush Color="{DynamicResource DarkerGray}"/>
                                        </TextBlock.Foreground><Run Text="to reenable CC disabled by dashboard, select targeted CCs"/><LineBreak/><Run Text="then press reenable"/></TextBlock>
                                </Grid>
                            </metro:MetroTabItem>
                              <metro:MetroTabItem metro:ControlsHelper.HeaderFontSize="18" Header="disabler" Margin="20,0,-23,0">
                                <Grid>
                                    <ListBox SelectionMode="Multiple" x:Name="enabledCC" HorizontalAlignment="Stretch" Margin="10,42,10,45"/>
                                    <Button Click="disableCC_Click"  x:Name="disableCC" metro:ButtonHelper.CornerRadius="0" Margin="9.003,0,0,10" HorizontalAlignment="Left" VerticalAlignment="Bottom" Width="60" Height="30" Content="DISABLE"/>
                                    <TextBlock x:Name="textBlock1" Height="34.04" Margin="13.333,2.96,0,0" TextWrapping="Wrap" VerticalAlignment="Top" HorizontalAlignment="Left" Width="331.667" Text="to disable CC, select targeted CCs then press disable.">
                                        <TextBlock.Foreground>
                                            <SolidColorBrush Color="{DynamicResource DarkerGray}"/>
                                        </TextBlock.Foreground></TextBlock>
                                </Grid>
                            </metro:MetroTabItem>
                            <metro:MetroTabItem metro:ControlsHelper.HeaderFontSize="18" Margin="30,0,-20,0" Header="diagnostics" IsEnabled="False"/>
                            <metro:MetroTabItem metro:ControlsHelper.HeaderFontSize="18" Margin="30,0,-30,0" Header="profile" IsEnabled="False"/>
                          
                        </metro:MetroTabControl>
                    </Grid>
                </metro:MetroTabItem>
            </metro:MetroTabControl>
            <Grid x:Name="busyMask" Visibility="Collapsed" Background="Black">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                    <metro:ProgressRing IsActive="True" x:Name="busyRing" Foreground="#CCFFFFFF"/>
                    <metro:TransitioningContentControl x:Name="busyNotice" Margin="20,0,0,0" Content="taking care of a few things..." HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White" FontFamily="Segoe UI Light" FontSize="26.667"/>
                </StackPanel>
            </Grid>
        </Grid>
    </Border>
</metro:MetroWindow>
